package com.centaline.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by zhuody on 2018/2/5.
 */

@Controller
@RequestMapping("/rest/uimcards")
public class UimcardController {

    /**
     * @author zhuody
     * @Date   2018-02-05
     * @Desc   推送卡状态
     * @return
     */
    @RequestMapping(value = "/status",method= RequestMethod.POST)
    @ResponseBody
    public Map<String,Object> pushCostsInfo(Model model, HttpServletRequest request){
        Map<String,Object> statusMap = new HashMap<String,Object>();
        try {

            statusMap.put("result", 0);
            statusMap.put("error", "接口调用成功");

        } catch (Exception e) {
            e.printStackTrace();
        }
        return  statusMap;
    }
}
